/**
 * 
 * @author marco.l
 * @since 2010-05-19
 */
(function()   
{   
	var node = document.getElementsByTagName("html")[0],
		browsers = ["webkit", "firefox", "ie", "opera"],
		regexp, test, i, li, cssClass;
	
	//detect browser  
	for(i=0, li=browsers.length; i<li; ++i)   
	{   
		regexp = new RegExp( "(" + browsers[i] + ")\\/*\\s*(\\d+)");   
		test = regexp.exec(navigator.userAgent.toLowerCase());   
		if(test && test.length == 3)  
		{
			cssClass = test[1] + " " + test[1] + test[2];  
			return node.className += (node.className === "") ? cssClass : " " + cssClass; 
		}  
	}   
})();
